package com.qidian.service;

import com.qidian.pojo.Bank;
import com.qidian.util.BankResult;

import java.util.List;
import java.util.Map;

/**
 * @author 戴着假发的程序员
 * @company 江苏极刻知学-起点编程
 */
public interface BankService {

    public BankResult save(Bank bank);

    /**
     *
     * @param bankName 查询条件
     * @param page 页码
     * @param limit 每页大小
     * @return
     */
    public Map queryByPage(String bankName, int page, int limit);

    public List<Bank> queryAll();

    public Bank queryById(Integer bankId);

    public BankResult update(Bank bank);

    public BankResult delete(Integer bankId);

    public BankResult delete(List<Integer> bankIds);
}
